package com.info.zhiduoduo.repository.entity.company;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2021-08-21
 */
@Data
@Accessors(chain = true)
@TableName("zdd_company_transfer_maker_groupon")
public class CompanyTransferMakerGroupon extends Model<CompanyTransferMakerGroupon> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键申请id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 企业id
     */
    private Integer compid;
    /**
     * 转账金额
     */
    private BigDecimal amount;
    /**
     * 状态 1:已申请 2:已转账
     */
    private Integer state;
    /**
     * 管理人员id
     */
    private Integer adminid;
    /**
     * 申请时间
     */
    @TableField("apply_time")
    private Date applyTime;
    /**
     * 完成时间
     */
    @TableField("finish_time")
    private Date finishTime;
    private Date createtime;
    private Date updatetime;

    @ApiModelProperty("转出：企业支付方式ID")
    @TableField("from_comp_pay_id")
    private Integer fromCompPayId;

    @ApiModelProperty("转入：企业支付方式ID")
    @TableField("to_comp_pay_id")
    private Integer toCompPayId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
